<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/css/layui.css" rel="stylesheet">
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<!-- <div class="form-group">	
								<label class="col-sm-3 control-label">创建时间：</label>
								<div class="col-sm-8">
									<input id="createTime" name="createTime" class="form-control" type="text">
								</div>
							</div> -->
							<div class="form-group">	
								<label class="col-sm-3 control-label">典藏名称：</label>
								<div class="col-sm-8">
									<input id="name" name="name" class="form-control" type="text">
								</div>
							</div>
							
							<div class="form-group">	
								<label class="col-sm-3 control-label">典藏分类：</label>
								<div class="col-sm-8">
									<!-- <input id="dataDictionaryId" name="dataDictionaryId" class="form-control" type="text"> -->
									<select class="form-control" name="dataDictionaryId">
										<option>请选择分类</option>
									</select>
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">状态：</label>
								<div class="col-sm-8">
									<!-- <input id="recStatus" name="recStatus" class="form-control" type="text"> -->
									<select class="form-control" name="recStatus">
										<option value="A">生效</option>
										<option value="I">禁用</option>
									</select>
								</div>
							</div>
														<!-- <div class="form-group">	
								<label class="col-sm-3 control-label">更新时间：</label>
								<div class="col-sm-8">
									<input id="updateTime" name="updateTime" class="form-control" type="text">
								</div>
							</div> -->
														<!-- <div class="form-group">	
								<label class="col-sm-3 control-label">典藏介绍：</label>
								<div class="col-sm-8">
									<input id="content" name="content" class="form-control" type="text">
								</div>
							</div> -->
														
														
														<div class="form-group">	
								<label class="col-sm-3 control-label">典藏封面图：</label>
								<div class="col-sm-8" >
									<input type="text" name="imageUrl"  id="path" style="float:left" readonly>
									 <button type="button"  class="layui-btn" id="test1" style="height:23px;line-height:23px;">文件上传</button>
								</div>
							</div>
							<div class="form-group">
								<input id="content" name="content" type="hidden"> <label
									class="col-sm-3 control-label">典藏介绍：</label>
								<div class="col-sm-8">
									<div class="ibox-content no-padding">
										<div id="content_sn" class="summernote"></div>
									</div>
								</div>
							</div>
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/system/collection/add.js"></script>
	<script src="/js/layui.js"></script>
	<script src="/js/plugins/layer/layer.min.js"></script>
	<script type="text/javascript">
	layui.use('upload', function () {
        var upload = layui.upload;
        //执行实例
        var uploadInst = upload.render({
            elem: '#test1', //绑定元素
            url: '/common/sysFile/upload', //上传接口
            size: 1000,
            accept: 'file',
            done: function (r) {
                layer.msg(r.msg);
                $("[name=imageUrl]").val(r.fileName);
                //layer.msg(r.fileName);
                
               // app.getData();
            },
            error: function (r) {
                layer.msg(r.msg);
            }
        });
    });
	</script>
</body>
</html>
